


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/WdatePicker.js"></script>
    <script src="./home/js/jquery-1.4.2.min.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <script src="./home/js/Validator.js"></script>
    <script src="./home/js/jsAddress.js" type="text/javascript"></script>
    <script src="./home/js/jQuery.etmTabs.js"></script>
    <script src="./home/js/area.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='./home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=8e5f7ad0-28f0-488f-9b45-0b46d4a9fe57', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <style type="text/css">
        #followContainer {
            padding-left: 20px;
            margin-top: 8px;
        }

        .spanMark {
            border: solid 1px #ccc;
            background-color: #fff;
            padding: 0 3px 0 3px;
            margin: 1px;
            display: inline-block;
            height: 20px;
            line-height: 20px;
        }

        ul {
            list-style: none;
            padding-left: 5px;
            margin: 5px 0px 15px 0px;
        }

            ul li {
                float: left;
                padding: 1px 5px 1px 5px;
                margin: 5px;
                border: 1px solid #ccc;
                background-color: #fff;
                height: 22px;
                line-height: 22px;
                font-size: 13px;
            }

        .li_Field {
            cursor: pointer;
        }

        .selected {
            background-color: #75A801;
        }

        .fixed {
            background-color: #75A801;
            color: white;
        }

        .A_Back {
            cursor: pointer;
        }
    </style>

    <script type="text/javascript">
        var SProvince = '';
        var SProvinces = '';
        $(function () {
            _init_area();
            if (SProvince != '') {
                $("#SProvince").val(SProvince);
                change(1);
                $("#SCity").val('');
                $("#SArea").val('');// 户籍 省市区域
            }
            else {
            }
            if (SProvinces != '') {
                addressInit('SProvinces', 'SCitys', 'SAreas', '', '', ''); // 现住址 省市区域
            }
            else {
                addressInit('SProvinces', 'SCitys', 'SAreas', '广东', '广州市', '越秀区'); //现住址 省市区域
            }
            var memberGuid = '';
            if (memberGuid == '') {
                $("#tab").etmTabs({
                    item: [
                        { Url: 'CEdit.aspx?navId=8e5f7ad0-28f0-488f-9b45-0b46d4a9fe57', Selected: true, Text: "名单添加" },
                    { Url: 'CImport.aspx?navId=8e5f7ad0-28f0-488f-9b45-0b46d4a9fe57', Selected: false, Text: "名单导入" }
                    ]
                });
                aAdd();
            }
            else {
                UPhide();
            }
        });


        function getMemberSource() {
            if ($("#ddlSource").val() == "00000000-0000-0000-0000-000000000000") {
                $("#ddlSourceInfo").empty();
                $("#ddlSourceInfo").hide();
            }
            else {
                $.AjaxETM("CRM_SourceList", { "Guid": $("#ddlSource").val() },
                    function (data) {
                        if (data != null) {
                            $("#ddlSourceInfo").show();
                            $("#ddlSourceInfo").html("<option value='00000000-0000-0000-0000-000000000000'>请选择</option>");
                            var jsonData = jQuery.parseJSON(data);
                            $.each(jsonData, function (i, n) {
                                $("#ddlSourceInfo").append("<option value='" + n.SourceGuid + "'>" + n.SourceName + "</option>");
                            });
                        }
                        else {
                            $("#ddlSourceInfo").empty();
                            $("#ddlSourceInfo").hide();
                        }
                    }, false, "text");
                }
            }
    </script>
    <script type="text/javascript">
        //隐藏上升按钮
        function UPhide() {
            $(".up").removeClass("hidden");
            $(".up").eq(0).addClass("hidden");
        }
        function re() {
            $("#l1").height($(window).height()).niceScroll({ cursorcolor: '#75A801', horizrailenabled: false });
            $("form").getNiceScroll().remove();
        }
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r != null) return unescape(r[2]); return null; //返回参数值
        }
        //添加家长信息
        function aAdd() {
            $.AjaxETM("CRM_Member_Param", { "Guid": "" },
      function (data) {
          var jsonData = '{"Guardianship":"","GuardianGuid":"00000000-0000-0000-0000-000000000000","GuardianGroupGuid":"00000000-0000-0000-0000-000000000000","GuardianName":"","Mobile":"","WorkUnit":"","Education":"","SortID":"0"}';
          var trHtml = '<tr>';
          trHtml += '<td class="textAlignRight" style="width: 80px;" >&nbsp;&nbsp;姓名：</td>'
          trHtml += '<td class="borderRight" style="width: 270px;"  ><input type="text" name="tbGuardianName" class="int" />&nbsp;&nbsp;' + data + '</td>';
          trHtml += '<td  class="textAlignRight" style="width: 100px;" >手机号码：</td>'
          trHtml += '<td><input type="text" style="width: 142px;" name="tbMobile" class="int" /></td>';
          trHtml += '</tr><tr>';
          trHtml += '<td class="textAlignRight">&nbsp;&nbsp;学历：</td>';
          trHtml+='<td class="borderRight">';
          trHtml+='<select name="tbEducation" class="int">';
          trHtml+='<option value="未知">请选择</option>';
          trHtml+='<option value="小学及以下">小学及以下</option>';
          trHtml+='<option value="初中">初中</option>';
          trHtml+='<option value="高中">高中</option>';
          trHtml+='<option value="中专">中专</option>';
          trHtml+='<option value="大专">大专</option>';
          trHtml+='<option value="本科">本科</option>';
          trHtml+='<option value="研究生">研究生</option>';
          trHtml+='<option value="博士及以上">博士及以上</option>';
          trHtml+='</select>';
          trHtml+='</td>';
          trHtml += '<td  class="textAlignRight">&nbsp;&nbsp;工作单位：</td>';
          trHtml += '<td><input type="text" style="width: 142px;" name="tbWorkUnit" class="int" />';
          trHtml += '<a href="javascript:void(0)" title="删除" style="margin-left:5px" class="deleteList"><img src="/Images/del_c.png" /></a>';
          trHtml += '&nbsp;&nbsp;<a href="javascript:void(0)"  title="上升" class="up"><img src="/Images/up_c.png" /></a></td>';
          trHtml += '<input type="hidden" class="tt" name="hFieldInfo" value=\'' + jsonData + '\' />';
          trHtml += '<input type="hidden" class="int" name="tbGroupGuid" />';
          trHtml += '<input type="hidden" class="int" name="tbGuardianGuid" />';
          trHtml += '</tr>';
          $("#FieldList").append(trHtml);
          UPhide();
          re();
      }, false, "text");
        }
        //同一家庭信息
        function EditDlgs(memberGuid, navId) {
            window.parent.showDialog("名单资料查看", "../Modules/CRM/CInfo.aspx?memberGuid=" + memberGuid + "&navId=" + navId, "976px", "450px");
        }

        $(function () {
            $("#FieldList .deleteList").live("click", function () {
                var fieldObj = $(this).parent().parent().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                if (jsonObj.Guardianship.length < 0) {
                    var delFields = $("#hfDelField").val();
                    if (delFields.length > 0)
                        delFields = delFields + "," + jsonObj.Guardianship;
                    else
                        delFields = jsonObj.Guardianship;
                    $("#hfDelField").val(delFields);
                }
                var temps = $(this).parent().parent();
                temps.prev().remove();
                temps.remove();
                re();
                UPhide();
            });


            $(".up").live("click", function () {
                var curRowObj = $(this).parent().parent();
                if (curRowObj.index() > 2) {
                    var preRowObj = curRowObj.prev();
                    var temps = preRowObj.prev().prev();
                    if (temps.find("select").size() > 0) {
                        var cu = curRowObj;
                        curRowObj.remove();
                        temps.before(preRowObj);
                        temps.before(curRowObj);
                    }
                }
                UPhide();
            });

            $("#FieldList input[name='tbMobile']").live("change", function () {
                var fieldObj = $(this).parent().parent().next().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                jsonObj.Mobile = $(this).val();
                fieldObj.val(JSON.stringify(jsonObj));
                var temp = $(this);
                $.AjaxETM("CRM_Member_Guardian", { "Moblie": jsonObj.Mobile },
               function (data) {
                   if (data != "false") {
                       if (temp.next('span').index() > 0) {
                           // $(this).parent().next('p').remove();
                           // temp.parent().next('span').remove();
                       }
                       else {
                           var test = data.split(",");
                           var temps = "<span><input name=\"checkall1\" type=\"checkbox\"   onClick=\"checkAddBox('" + test[0] + "',this);\"/>与<a href=\"javascript:EditDlgs('" + test[2] + "','" + test[0] + "')\">" + test[1] + "</a>同一家庭</span>";
                           temp.after(temps);
                       }
                   }
                   else {
                       temp.next('span').remove();
                   }
               }, false, "text");

            });

            $("#FieldList select[name='ddlFieldType']").live("change", function () {
                var fieldObj = $(this).parent().parent().next().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                jsonObj.Guardianship = $(this).val();
                fieldObj.val(JSON.stringify(jsonObj));
            });

            $("#FieldList input[name='tbGroupGuid']").live("blur", function () {
                var fieldObj = $(this).parent().parent().next().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                jsonObj.GuardianGroupGuid = $(this).val();
                fieldObj.val(JSON.stringify(jsonObj));
            });

            $("#FieldList input[name='tbGuardianGuid']").live("blur", function () {
                var fieldObj = $(this).parent().parent().next().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                jsonObj.GuardianGuid = $(this).val();
                fieldObj.val(JSON.stringify(jsonObj));
            });

            $("#FieldList input[name='tbGuardianName']").live("blur", function () {
                var fieldObj = $(this).parent().parent().next().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                jsonObj.GuardianName = $(this).val();
                fieldObj.val(JSON.stringify(jsonObj));
            });

            $("#FieldList input[name='tbWorkUnit']").live("blur", function () {
                var fieldObj = $(this).parent().parent().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                jsonObj.WorkUnit = $(this).val();
                fieldObj.val(JSON.stringify(jsonObj));
            });

            $("#FieldList select[name='tbEducation']").live("blur", function () {
                var fieldObj = $(this).parent().parent().find("input[name='hFieldInfo']");
                var jsonObj = jQuery.parseJSON(fieldObj.val());
                jsonObj.Education = $(this).val();
                fieldObj.val(JSON.stringify(jsonObj));
            });
        });

        function checkAddBox(GuardianGroupGuid, ob) {

            if (GuardianGroupGuid != "") {
                var temps = false;
                $(".tt").each(function () {
                    var jsonObj = jQuery.parseJSON($(this).val());
                    if (jsonObj.GuardianGroupGuid == GuardianGroupGuid) {
                        temps = true;
                    }
                });
                if (temps == false) {
                    $(function () {
                        $.AjaxETM("CRM_Member_Guardians", {
                            "GuardianGroupGuid":

    GuardianGroupGuid
                        },
                       function (data) {
                           var bo = $(ob).parent().parent().parent();
                           bo.before(data);
                           bo.next().remove();
                           bo.remove();
                           UPhide();
                       }, false, "text");
                        UPhide();
                    });
                } else {
                    UPhide();
                    //alert("您已经添加啦该家长信息");
                }
            }
        }

        function ShowHideName() {
            var RealName = "";
            RealName = $("#txtRealName").val();
            if (RealName != "") {
                $("#spanResult").hide();
            }
        }
        function ShowHidetrSelectField() {
            var num3 = "";
            var num4 = "";
            $(".trSelectField").each(function () {
                num3 = num3 + $(this).val();
                num4 = num4 + $(this).parent().find(".words").eq(1).html();
                if (num4 == "不能为空" && num3 == "") {
                    //$(this).parent().find(".words").eq(1).show();
                }
                else {
                    $(this).parent().find(".words").eq(1).hide();
                }
                num3 = "";
                num4 = "";
            });
        }
        function ShowHideTrField() {
            var num1 = "";
            var num2 = "";
            $(".trField").each(function () {
                num1 = num1 + $(this).val();
                num2 = num2 + $(this).parent().find(".words").eq(1).html();
                if (num2 == "不能为空" && num1 == "") {
                    //$(this).parent().find(".words").eq(1).show();
                }
                else {
                    $(this).parent().find(".words").eq(1).hide();
                }
                num1 = "";
                num2 = "";
            });
        }

    </script>
    <script type="text/javascript">
        $("#city_1").citySelect({
            nodata:"none",
            required:false
        });
    </script>
</head>
<body>
    <form method="post" action="CEdit.aspx?navId=8e5f7ad0-28f0-488f-9b45-0b46d4a9fe57" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMTU4NDgyMTA5D2QWAgIDD2QWEGYPZBYCAgEPZBYCZg9kFgICAQ8WAh4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TdjY2Q3LWNlZmItNDFmMS04Y2E4LTgzOWRkZjBkNTBlYiQwNTJkNzgzMS1kMDNmLTQ3MjUtOGMzOS01MDVlNTc5NjUyY2QUKwMFZ2dnZ2dkZAIPDxBkEBUFCeivt+mAieaLqQ0yMDE45LiK5a2m5pyfDTIwMTfkuIvlrabmnJ8NMjAxN+S4iuWtpuacnw0yMDE25LiL5a2m5pyfFQUkMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwJGY3NzVjOWY2LTE5ZDUtNGMxYi04ZDE5LWEzNmE0NGIxY2RjNSQ5ODgwZGRkYi1kODIyLTQ2NTItOTc2ZS04ZGI1NTAzYWU1NGUkNjlkYjhlNjItZmFlNi00MjZkLTliYjItODA2OTM2NzE4OTBlJGQwZTU5ZmQ2LTYxNzEtNGI4ZS1hZjY4LTBlZWQ5OWY1ZGI4ZRQrAwVnZ2dnZ2RkAhQPFgIfAQWFAjx0cj48dGQgY2xhc3M9InRleHRBbGlnblJpZ2h0IiBzdHlsZT0id2lkdGg6ODBweDsiIHJlcXVpcmU9ImZhbHNlIiBjdHJsdHlwZT0idGV4dCIgY3RybG5hbWU9InVkTWVtYmVyX1VEMSI+5bu66K6u57qn5Yir77yaPC90ZD48dGQgY29sc3Bhbj0iMyI+PGlucHV0IHR5cGU9InRleHQiIG5hbWU9InVkTWVtYmVyX1VEMSIgb25ibHVyPSJqYXZhc2NyaXB0OlNob3dIaWRlVHJGaWVsZCgpIiB2YWx1ZT0iIiBjbGFzcz0iaW50IHRyRmllbGQiIC8+PC90ZD48L3RyPmRkYFllxxJSRONJAei6fYclDetHFgpAR4Na+1/GmCcGn/g=" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="D117041A" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdACaISMevSgT+p7Ys3DTFhwsEd/Rba84WOednbamt+JaWRe2Wcw0Rv1zag2iaW5ajyOsRCYsKkEsC/1n0mhJrbn99qw21Aw8WrNhLssQQyz7UO6jNiQpAElmsbUOg7GQfN2GJi0vlTNTGprZb/2kS7pATTZEAQSza5cD0f9MIa4Uql/nuSvN2ujDLViqJoMSOWQc4r5MebWHyOphassIjyivRejFuXQgbceqF2EbKo4pOGlh1Op46LZitPmM99t9fxhd0AFun5T9/o+2+SzpXgwjfUVf3huhkatOkqdODTU7zrIKHb/HDO2Du2cAeV+wC3I+aj50dSVxh1rHEj9T9L1ldUNwmkZuqMN8LphRZtAZJqkKoAsgF6rxZalZrlccRBWszaUXVo9Ys8kOPTNsAlNtBcmb4EXyKxgjlpYjEBxMsCTZ/6w3tAT53PKz9wp8KfdMX5yOm1GaglyWE2C1de/9iiMhYlHHhKQmjObQTt7FsTbxZzcYDuUU8U9rFbkaLlKfn444oudIIq5ThLdXNVJ6hp7YR5sOvsTN9s5jW//+zCaQxQYGaYOgZhyBH5LUm5NcRbFjSY+Q5WJqLU4+47obeOvBiY54AEw5aVvi+eKnR7YeLiMEaD0Mg0/YbkHxnKe14kLCo/9f7zJUyu2rS58J2hXTil94TrQgAv3Z/FFcttGojMTIpPPx0eGXa3YvnC5A/zkwiNUw17HwFfjGvklYVepRSKoyDsxPlgcORWaThbZnY7yKcqFGWEpS0WdH9kJBZlLhPpjMpVdWQ45OvJfcWlliAPKY+KvRmniYVjNuQiPmokHVz+AKTPBLl0RVSpbqnG7S8b93j+BAfBKiR/7QD" />
</div>
        <div id='l1' style="float: left; *position: relative; width: 100%">
            <div id="tab"></div>
            <table id="Ta_fieldExport" class="list" style="position: fixed; z-index: 6; width: 41%; display: none" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td style="padding-left: 15px; border-right: 0px;">
                        
                    </td>
		<td style="text-align: right; padding-right: 10px; border-left: 0px; background-color: rgb(255, 255, 255);">
                        <a class="A_Back">
                            <img src="/Images/del_c.png"></a>
                    </td>
	</tr>
	<tr>
		<td colspan="2" style="padding-bottom: 5px;">
                        <ul>
                            
                                    <div style="float: left; width: 160px">
                                        <li>
                                            <input name="cbMark" class="cbe9bcc0c5-74eb-4675-8810-d07ae49bcbbb" type="checkbox" onclick="AddBoxMark('e9bcc0c5-74eb-4675-8810-d07ae49bcbbb    ','体弱    ','#FFFFFF    ');" /></li>
                                        <li class='li_Field' style="background-color: #FFFFFF;">
                                            体弱
                                        </li>
                                    </div>
                                    
                                    <div style="float: left; width: 160px">
                                        <li>
                                            <input name="cbMark" class="cb49f78fab-cb50-4d0b-a947-b109b12653a5" type="checkbox" onclick="AddBoxMark('49f78fab-cb50-4d0b-a947-b109b12653a5    ','笨笨    ','#FFC34D    ');" /></li>
                                        <li class='li_Field' style="background-color: #FFC34D;">
                                            笨笨
                                        </li>
                                    </div>
                                    
                                    <br />
                                    
                                    <div style="float: left; width: 160px">
                                        <li>
                                            <input name="cbMark" class="cb83522b0e-54bd-4e11-9dd5-39bb62e98241" type="checkbox" onclick="AddBoxMark('83522b0e-54bd-4e11-9dd5-39bb62e98241    ','爱哭    ','#6666FF    ');" /></li>
                                        <li class='li_Field' style="background-color: #6666FF;">
                                            爱哭
                                        </li>
                                    </div>
                                    
                                    <div style="float: left; width: 160px">
                                        <li>
                                            <input name="cbMark" class="cbf1287f7f-c509-4fb9-a4a7-3f1dfc590ebc" type="checkbox" onclick="AddBoxMark('f1287f7f-c509-4fb9-a4a7-3f1dfc590ebc    ','傻傻    ','#FFFFFF    ');" /></li>
                                        <li class='li_Field' style="background-color: #FFFFFF;">
                                            傻傻
                                        </li>
                                    </div>
                                    
                                    <br />
                                    
                                    <div style="float: left; width: 160px">
                                        <li>
                                            <input name="cbMark" class="cbacd6ce44-37de-4619-af90-9313bc68e71c" type="checkbox" onclick="AddBoxMark('acd6ce44-37de-4619-af90-9313bc68e71c    ','可爱    ','#FFD64F    ');" /></li>
                                        <li class='li_Field' style="background-color: #FFD64F;">
                                            可爱
                                        </li>
                                    </div>
                                    
                        </ul>
                        <input type="hidden" name="hfStaffInfo1s" id="hfStaffInfo1s" />
                    </td>
	</tr>
</table>

            <table id="BaseInfo" width="100%" class="edit">
                <tr>
                    <td>
                        <table class="edit" style="margin-top: -15px;">
                            <tr>
                                <td colspan="4">
                                    <div class="title1">
                                        <div>&nbsp;</div>
                                        基本资料
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight" style="width: 80px;">幼儿姓名：
                                </td>
                                <td class="borderRight" style="width: 270px;">
                                    <input name="txtRealName" type="text" id="txtRealName" class="int" />
                                    <span class="words">*</span>
                                    <span class="words" id="spanResult"></span>
                                </td>
                                <td class="textAlignRight" style="width: 97px;">幼儿昵称：
                                </td>
                                <td class="">
                                    <input name="txtNickName" type="text" id="txtNickName" class="int" />
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">幼儿生日：
                                </td>
                                <td class="borderRight">
                                    <input name="txtBirthDate" type="text" id="txtBirthDate" class="int" onfocus="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;,minDate:&#39;1900-01-01&#39;})" />
                                </td>
                                <td class="textAlignRight">幼儿性别：
                                </td>
                                <td class="">
                                    <span id="rbSex"><input id="rbSex_0" type="radio" name="rbSex" value="男" checked="checked" /><label for="rbSex_0">男</label><input id="rbSex_1" type="radio" name="rbSex" value="女" /><label for="rbSex_1">女</label></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">固定电话：
                                </td>
                                <td class="borderRight">
                                    <input name="txtPhone" type="text" id="txtPhone" class="int" onchange="return CheckPhone(&#39;txtPhone&#39;,&#39;spanPhone&#39;);" />
                                    <span class="words" id="spanPhone"></span>
                                </td>
                                <td class="textAlignRight">家庭收入：
                                </td>
                                <td class="">
                                    <select name="ddlInComeList" id="ddlInComeList" class="int" style="width: 142px;">
	<option value="">请选择</option>
	<option value="57670e69-34e2-4f6f-850f-1647f11561c4">5000~10000</option>
	<option value="6fa7b740-355e-408f-a76f-ae07d9b4f6e8">10000~99999</option>
	<option value="64a6bb02-7f3b-4e54-a96b-de4d68d913b7">4000~5000</option>
	<option value="0e746b33-7146-475f-95b8-8f5e6b54cbf2">1000~4000</option>

</select>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">添加标签：
                                </td>
                                <td colspan="3">
                                    <img src="./home/images/add.png" onclick="xy(event)" id="btnDownData" title="添加标签" style="vertical-align: middle; cursor: pointer;" />
                                    <span id="divMarks">
                                        </span>
                                    <input type="hidden" name="hfMarks" id="hfMarks" />
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">户籍地址：
                                </td>
                                <td colspan="3">
                                    <select id="SProvince" name="SProvince" class="int">
                                    </select>&nbsp;&nbsp;
                                    <select id="SCity" name="SCity" style="width: 100px;" class="int">
                                    </select>&nbsp;&nbsp;
                                    <select id="SArea" name="SArea" class="int" style="width: 142px; display: none;">
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">现住地址：
                                </td>
                                <td colspan="3">
                                    <select id="SProvinces" name="SProvinces" class="int">
                                    </select>&nbsp;&nbsp;
                                    <select id="SCitys" name="SCitys" style="width: 100px;" class="int">
                                    </select>&nbsp;&nbsp;
                                    <select id="SAreas" name="SAreas" class="int" name="SAreas" style="width: 142px;">
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">详细地址：</td>
                                <td colspan="3">
                                    <textarea name="txtAddress" rows="2" cols="20" id="txtAddress" class="int" style="width: 514px; height: 35px;">
</textarea>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="borderBottom"></td>
                </tr>
                <tr>
                    <td>
                        <table id="FieldList" class="edit" style="margin-top: -15px;">
                            <tr>
                                <td colspan="4">
                                    <div class="title1">
                                        <div>&nbsp;</div>
                                        家长信息
                                         <a onclick="aAdd()" href="javascript:void(0)">
                                             <img alt="添加家长信息" title="添加家长信息" src="./home/images/add.png" style="border: 0; vertical-align: middle;" />
                                         </a>
                                    </div>
                                </td>
                            </tr>

                            <tbody>
                                
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="borderBottom"></td>
                </tr>
                <tr>
                    <td>
                        <table class="edit" style="margin-top: -5px;">
                            <tr>
                                <td colspan="4">
                                    <div class="title1">
                                        <div>&nbsp;</div>
                                        高级资料
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight" style="width: 80px;">幼儿来源：
                                </td>
                                <td class="borderRight" style="width: 270px;">
                                    <select name="ddlSource" id="ddlSource" class="int" onchange="getMemberSource();" style="width: 142px;">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="518d1051-f84f-4725-824d-9c294e567a4f">富人区</option>
	<option value="92fe2d3c-74fb-47b5-be7c-e9af99c492dd">穷人区</option>
	<option value="0827314f-0993-4fdf-8f35-ff0d52018ac8">学区居民</option>

</select>
                                    <select id="ddlSourceInfo" name="ddlSourceInfo" class="int"  style="width:100px;display:none;"><option value="00000000-0000-0000-0000-000000000000">请选择</option></select>
                                </td>
                                <td class="textAlignRight" style="width: 97px;">幼儿类型：
                                </td>
                                <td>
                                    <select name="ddlMemberType" id="ddlMemberType" class="int" style="width: 142px;">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="fca3f2c4-2280-4235-91bc-4ede3b912950">定金幼儿</option>
	<option value="3826680a-e6bb-4a80-84f7-1a59326aeb6e">新来了解</option>

</select>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">申报年级：
                                </td>
                                <td class="borderRight">
                                    <select name="ddlApplyGrade" id="ddlApplyGrade" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="bca9e668-4ffc-40ab-a401-9f4952b96e46">小班</option>
	<option value="a7fc9d17-dfa5-4046-beb4-5aac2fd12bb0">托管班</option>
	<option value="b417ccd7-cefb-41f1-8ca8-839ddf0d50eb">中班</option>
	<option value="052d7831-d03f-4725-8c39-505e579652cd">大班</option>

</select>
                                </td>
                                <td class="textAlignRight">入学学期：
                                </td>
                                <td>
                                    <select name="ddlTerm" id="ddlTerm" class="int" style="width: 142px;">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="f775c9f6-19d5-4c1b-8d19-a36a44b1cdc5">2018上学期</option>
	<option value="9880dddb-d822-4652-976e-8db5503ae54e">2017下学期</option>
	<option value="69db8e62-fae6-426d-9bb2-80693671890e">2017上学期</option>
	<option value="d0e59fd6-6171-4b8e-af68-0eed99f5db8e">2016下学期</option>

</select>
                                </td>
                            </tr>
                            


                            <tr>
                                <td class="textAlignRight">健康状况：
                                </td>
                                <td class="borderRight">
                                    <textarea name="tbHealthInfo" rows="2" cols="20" id="tbHealthInfo" class="int" style="width: 240px; height: 31px;">
</textarea>
                                </td>
                                <td class="textAlignRight">忌食过敏：
                                </td>
                                <td>
                                    <textarea name="tbAvoidAllergyInfo" rows="2" cols="20" id="tbAvoidAllergyInfo" class="int" style="width: 262px; height: 31px;">
</textarea>
                                </td>
                            </tr>
                            <tr>
                                <td class="textAlignRight">兴趣爱好：
                                </td>
                                <td class="borderRight">
                                    <textarea name="tbInterestInfo" rows="2" cols="20" id="tbInterestInfo" class="int" style="width: 240px; height: 35px;">
</textarea>
                                </td>
                                <td class="textAlignRight">备注：
                                </td>
                                <td>
                                    <textarea name="txtNote" rows="2" cols="20" id="txtNote" class="int" style="width: 262px; height: 35px;">
</textarea>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="borderBottom"></td>
                </tr>
                <tr>
                    <td>
                        <table id="Table1" class="edit" style="margin-top: -15px;">
                            <tr>
                                <td colspan="4">
                                    <div class="title1">
                                        <div>&nbsp;</div>
                                        其他信息
                                    </div>
                                </td>
                            </tr>
                            <tbody>
                                <tr><td class="textAlignRight" style="width:80px;" require="false" ctrltype="text" ctrlname="udMember_UD1">建议级别：</td><td colspan="3"><input type="text" name="udMember_UD1" onblur="javascript:ShowHideTrField()" value="" class="int trField" /></td></tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </table>
            <input type="submit" name="btnSave" value="全部保存" onclick="return getValidator();" id="btnSave" class="button" style="position: fixed; top: 10px; right: 15px; width: 85px;" />

        </div>
        <script type="text/javascript">
            //删除标签
            function delMark(obj) {
                var s = $(obj).parent().attr("style");
                var MarkGuid = $(obj).parent().attr("MarkGuid");
                var i = s.indexOf("#");
                var bgcolor = s.substr(i, 7);              
                var mark = $.trim($(obj).parent().text());
                var c = $.trim($("#hfMarks").val());
                $("#hfMarks").val(c.replace(bgcolor + MarkGuid + mark + "|", "").replace("|" + bgcolor + MarkGuid + mark, "").replace(bgcolor + MarkGuid + mark, ""));
                $(obj).parent().remove();
                $(".cb"+MarkGuid).attr('checked', false); //删除时复选框取消选中
            }
            //修改时选中复选框
            function addcbChecked()
            {
                var MGuids='';
                var marr=MGuids.split(',');
                for(var i in marr)
                {
                    $(".cb"+marr[i].replace(/^\"|\"$/g, '')).attr('checked', true);
                }
            }
            //选中复选框添加内容
            function AddBoxMark(MarkGuid,MarkInfo,bgColor)
            {
                if(mycheckbox(MarkGuid)==true){
                    var colorStyle = 'style="background-color:' + bgColor + ';"'+" MarkGuid="+MarkGuid;
                    if (MarkInfo != "") {
                        var addInfo = '<span class="spanMark '+MarkGuid+'" ' + colorStyle + '>' + MarkInfo;
                        addInfo += ' <img src="../../Images/del.png" onclick="delMark(this);" title="点击删除标签" style="vertical-align:middle;cursor:pointer;" />';
                        addInfo += '</span>';
                        $("#divMarks").append(addInfo);
                        var c = $.trim($("#hfMarks").val());
                        if (c.length > 0)
                            $("#hfMarks").val(c + "|" + bgColor.trim() +MarkGuid.trim()+ MarkInfo.trim());
                        else
                            $("#hfMarks").val(bgColor.trim()+MarkGuid.trim()+ MarkInfo.trim());
                    }
                }else
                {
                    $("."+MarkGuid).remove();
                    var c = $.trim($("#hfMarks").val());
                    $("#hfMarks").val($.trim(c.replace(bgColor.trim() + MarkGuid.trim() + MarkInfo.trim() + "|", "").replace("|" + bgColor.trim() + MarkGuid.trim() + MarkInfo.trim(), "").replace(bgColor.trim() + MarkGuid.trim() + MarkInfo.trim(), "")));
                }
            }
            //判断是否选中复选框
            function mycheckbox(MarkGuid) {
                var falg = 0;
                $("input[name='cbMark']:checkbox").each(function () {
                    if ($(".cb"+MarkGuid).attr("checked")) {
                        falg += 1;
                    }
                })
                if (falg > 0){
                    return true;
                }
                else
                {
                    return false;
                }
            } 
            //鼠标移出时关闭
            function onmouseoutexit()
            {     
                $("#Ta_fieldExport").css("display", "none")
            }
            //显示浮层
            function xy(event){
                $("#Ta_fieldExport").css("top",event.clientY+15);
                $("#Ta_fieldExport").css("left",event.clientX);
                $("#Ta_fieldExport").css("display", "block");
            }
            $(function () {
                addcbChecked();
                $(".A_Back").live("click", function () {
                    $("#Ta_fieldExport").css("display", "none")
                    $("#hfSelectedField").val("");
                });
            });

            function getValidator() {
                var flag = true;
                $("#FieldList input[name='tbMobile']").each(function () {

                    if ($.trim($(this).val()).length == 0) {

                    }
                    else {
                        if ($(this).val().search(/^1\d{10}$/) == -1) {
                            alert("请输入正确手机号");
                            flag = false;
                        }
                    }
                });
                if (!CheckEmpty('txtRealName', 'spanResult')) {
                    flag = false;
                }
                return flag;
            }

            function rbCheck(v) {
                if (v == 1)
                    $("#spanSchoolBus").show();
                else {
                    $("#spanSchoolBus").hide();
                }
            }
        </script>

    </form>
</body>
</html>
